<template>
  <div class="main">
    <!--<div class="user_info" :class="data.aaz502 == '1' ? '':'loss'">-->
    <div class="user_info">
      <div class="user_pic"><img src="../../assets/images/icon/img-headpic.png"/></div>
      <div class="user_msg">
        <ul>
          <li class="socialName">商丘人社</li>
          <li>姓名： {{data.aac003}}</li>
          <li>性别： {{data.aac004}}</li>
          <li>出生日期： {{data.XXX}}</li>
          <li>民族： {{data.xxx}}</li>
          <li>身份证： {{data.aac002}}</li>
          <li>卡状态： {{data.aaz502}}</li>
        </ul>
      </div>
    </div>
    <div class="tip">基本信息</div>
    <ul class="ul_info">
      <li><label>邮政编码</label><span>{{data.aae007}}</span></li>
      <li><label>联系电话</label><span>{{data.mobile}}</span></li>
      <li><label>单位名称</label><span>{{data.aab004}}</span></li>
      <li><label>制卡状态</label><span>{{data.aaz502}}</span></li>
      <li><label>通讯地址</label><span>{{data.aae006}}</span></li>
      <li><label>备注信息</label><span>{{data.xxx}}</span></li>
    </ul>
    <div class="tip">银行信息</div>
    <ul class="ul_info">
      <li><label>银行卡号</label><span>{{data.aae010}}</span></li>
      <li><label>开户银行</label><span>{{data.aae008NAME}}</span></li>
      <li><label>开户网点行号</label><span>{{data.aae008b}}</span></li>
      <li><label>银行制卡状态</label><span>{{data.aaz502}}</span></li>
      <li><label>制作卡商</label><span>{{data.xxx}}</span></li>
      <li><label>开户网点名称</label><span>{{data.aae008b}}</span></li>
    </ul>
    <div class="tip">卡面信息</div>
    <ul class="ul_info">
      <li><label>行政区划</label><span>{{data.xxx}}</span></li>
      <li><label>制卡批次号</label><span>{{data.xxx}}</span></li>
      <li><label>卡号</label><span>{{data.aaz500}}</span></li>
      <li><label>省发卡管理中心制卡状态</label><span>{{data.xxx}}</span></li>
      <li><label>是否初始密码</label><span>{{data.xxx}}</span></li>
      <li><label>发卡日期</label><span>{{data.xxx}}</span></li>
    </ul>
  </div>
</template>

<script>
  export default {
    data () {
      return {
        data: [],
      }
    },
    created () {
      this.getData();
    },
    methods: {
      //获取社保信息
      getData(){
        this.$http.post("transmit",{
          "access_token":this.utils.getToken(),
          "transmitUrl": "/ssCardMgr/cardInfoQuery",
          "method": "get",
          "objectId": "f4860abe5e8e49eca2725360f0c65c6c",
          "objectType": "1"
        }).then(res => {
          console.log(res)
          if (res.success) {
            this.data = res.body;
          }
        });
      },
    }
  }
  document.body.style.background = "#F2F2F2";
</script>

<style lang="less" scoped>
  .user_info {
    overflow: hidden;
    width: 90%;
    margin: 10px auto 0;
    background: url("../../assets/images/social/bg-card.png") no-repeat;
    background-size: 100% 100%;
    .loss {
      overflow: hidden;
      width: 90%;
      margin: 10px auto 0;
      background: url("../../assets/images/social/bg_card_loss.png") no-repeat;
      background-size: 100% 100%;
    }

    div {
      float: left;
    }

    .user_pic {
      height: 48px;
      width: 48px;
      border-radius: 50%;
      overflow: hidden;
      margin-left: 22px;
      margin-top: 62px;
      img {
        width: 100%;
        height: 100%;
      }
    }
    .user_msg {
      font-size: 12px;
      width: 75%;
      padding-bottom: 28px;
      ul {
        margin-top: 18px;
        color: #FFF;
        margin-left: 6%;
      }
      li:first-child {
        font-size: 15px;
        line-height: 36px;
        color: #F8E71C;
      }
      li:not(:first-child) {
        color: #ffffff;
      }
      li.font-s {
        font-size: 12px;
      }
    }
  }

  li {
    list-style: none;
    text-align: left;
    line-height: 23px;
    font-size: 13px;
  }
.tip{
  margin-left: 4%;
  line-height: 0.45rem;
}
  .ul_info {
    background: #ffffff;
    li {
      padding: 0.12rem 4% 0.12rem 0;
      margin-left:4%;
      border-bottom: 1px solid #DFDFDF;
      overflow: hidden;
    }
    li:last-child {
      border-bottom: none;
    }

    label {
      display: inline-block;
    }

    span {
      color: #888888;
      float: right;
      max-width: 70%;
    }

    input {
      height: 30px;
      border: none;
      outline: none;
    }
  }

  .bottom {
    margin-bottom: 70px;
  }

  .btn_sure {
    width: 90%;
    height: 50px;
    background: #3399FF;
    border-radius: 4px;
    border: none;
    font-size: 18px;
    color: #FFFFFF;
    margin: 30px 0 20px;
    -webkit-appearance: none;
    outline: none;
  }

  .btn_save {
    width: 100%;
    height: 50px;
    background: #3399FF;
    border: none;
    font-size: 18px;
    color: #FFFFFF;
    margin-top: 40px;
    -webkit-appearance: none;
    outline: none;
    position: fixed;
    left: 0;
    bottom: 0;
  }

</style>
